#pragma once

// file
#define FILE_HEADER_SIZE 20
#define FILE_HEADER_NO 0
#define SCHEMA_PAGE_NO 1
#define FIRST_PAGE_NO 2

#define PAGE_HEAD_SIZE 48
#define PAGE_SIZE 16384
#define INT_64_SIZE 8
#define INT_32_SIZE 4
#define DATETIME_SIZE 5

// cell
#define CELL_INDEX_NO 0
#define CELL_INDEX_NEXT 1
#define CELL_INDEX_PREV 2
#define CELL_INDEX_TRANSACTION 3
#define CELL_INDEX_UNDO_LOG_OFFSET 4
#define CELL_INDEX_OFFSET 5
#define CELL_INDEX_DELETED 6

#define INDEX_PAGE_HEAD_SIZE 20
#define INDEX_RECORD_SIZE 20


//
#define UN_DELETED 0 //未删除
#define DELETED 1  // 删除


// string
#define UNDO_LOG "undoLog"